package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_Arr06;

import java.util.Scanner;

public class Views {

	public static void main(String[] args) {

		
		Scanner obj_Scanner=new Scanner(System.in);
		Controller obj_Controller =new Controller();
		
		
		//Nhap thong tin tung sinh vien
		
		int SoPhanTu;
		System.out.println("Nhap So Sv: ");
		SoPhanTu=obj_Scanner.nextInt();
		Student []s=new Student[SoPhanTu];
		
		for(int i=0;i<SoPhanTu;i++)
		{
			s[i]=new Student();
			System.out.println("Nhap sv thu "+ i+1 +" ");
			System.out.println("Ma sv: ");
			s[i].setMaSV(obj_Scanner.nextInt());
			
			System.out.println("Ten sv: ");
			s[i].setTenSV(obj_Scanner.next());
			
			System.out.println("Diem sv: ");
			s[i].setDiemSV(obj_Scanner.nextDouble());
			
		}
		obj_Controller.SapXepDiemTang(s);
		
		//Xuat thong tin tung sinh vien
		for(int i=0;i<SoPhanTu;i++)
		{
			System.out.println(" sv thu "+ i +1 +" ");
			System.out.println("Ma sv: " +s[i].getMaSV());
			System.out.println("Ten sv: " +s[i].getTenSV());
			System.out.println("Diem sv: " +s[i].getDiemSV());
			
		}
		
	}

}
